/*
 * IFileTest.h
 *
 *  Created on: 1.4.2011
 *      Author: Tomas Srna
 */

#ifndef IFILETEST_H_
#define IFILETEST_H_

#include "IFile.h"
#include <iostream>
#include <cstring>

class IFileTest {
private:
	IFile& interface;
	std::ostream& logger;
	int all;
	int succ;
public:
	IFileTest(IFile& iface, std::ostream& logger);
private:
	void testOpen();
	void testRead();
	void testWrite();
	bool prepare();
public:
	bool run();
};

#endif /* IFILETEST_H_ */
